package role;

import communication.ParameterizedMessage;
import communication.ParameterizedMessageImpl;
import communication.SubjectRequestHandler;

public class MasterInfoRequestHandler extends SubjectRequestHandler  {

	public MasterInfoRequestHandler() {
		super("Role::MasterInfo");
	}

	@Override
	public ParameterizedMessage handle(ParameterizedMessage message) {
		ParameterizedMessage infoMessage = new ParameterizedMessageImpl("MasterInfo");
		infoMessage.setParameter("isMaster", "true");
		return infoMessage;
	}

}
